<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width,initial-scale=1,user-scalable=0,viewport-fit=cover">
<title></title>
{include file="common/pub_style" /}
<style type="text/css">
.tips {color: #6046ff;	font-weight: 600}
.layui-layer {border: 2px solid #3c3c3c}
.layui-layer-setwin {display: none;}
.layui-layer-title {background: #7670d9; color: #fff;}
.layui-layer-dialog .layui-layer-content {background: linear-gradient(270deg, #1e2534, #0c1a37); color: #fff}
.layui-layer-btn {background: linear-gradient(270deg, #1e2534, #0c1a37);}
</style>
<script type="text/javascript">
	$(document).ready(function() {
		{notempty name="member.frozen_remark"}
        var layer1 = layer.open({
            title: "",
            content: "{$member.frozen_remark}",
            btn:["{$Think.lang.btn_close}"],
            btn2: function(index, layero){
                
            }
        })
        {/notempty}
        isformnull();
		$(".login-btn").click(function() {
			if (getformnull() == 0) {
				$("#loadingToast").show();
				$.ajax({
					type : 'post',
					url : "",
					dataType : "json",
					data : $("form").serialize(),
					success : function(res) {
						layer.msg(res.msg);
						if (res.code == 99) {
							$("form").get(0).reset();
							window.location.href = "{:url('recode')}";
						}
						$("#loadingToast").hide();
					}
				});
			}
		})
		var type = $("select[name='wallet_type']").find("option:selected").val();
		getQr(type);
		$("select[name='wallet_type']").change(function() {
			type = $("select[name='wallet_type']").find("option:selected").val();
			getQr(type);
		})
	})
	function getQr(type) {
		$.ajax({
			type : 'post',
			url : "{:url('getQr')}",
			dataType : "json",
			data : 'type=' + type,
			success : function(res) {
				//$("input[name='usdt_wallet']").val(res.key);
				$(".wallet_key").html(res.key);
			}
		});
	}
</script>
</head>
<body>
	<div class="header-wrap">
		<div class="flex flex-between pd10">
			<div class="left-arrow" onclick='javascript:window.location.href="{:url('User/index')}"'></div>
			<div class="">{$Think.lang.label_withdraw}</div>
			<div class="">
				<a href="{:url('recode')}">{$Think.lang.recode}</a>
			</div>
		</div>
	</div>
	<div style="height: 70px"></div>
	<div class=" pd20">
		<form id="login-form" class="form-horizontal" action="" method="post">
			<div class="form-row flex">
				<div class="title label-md">{$Think.lang.balance}:</div>
				<div class="input-box q-ml-md">{$member.money} USDT(Tether)</div>
			</div>
			<div class="form-row flex">
				<div class="title label-md">{$Think.lang.amount}:</div>
				<div class="input-box">
					<input type="number" name="money" class="form-control password" placeholder="5-1000000" autocomplete="off">
				</div>
			</div>
			<div class="form-row flex">
				<div class="title label-md">{$Think.lang.wallet_type}:</div>
				<div class="input-box">
					<select name="wallet_type" id="walletType" class='form-control'>
						<option value="trc20">TRC20</option>
						<option value="erc20">ERC20</option>
					</select>
				</div>
			</div>
			<div class="form-row flex">
				<div class="title label-md">{$Think.lang.wallet_addr}:</div>
				<div class="input-box">
					<input type="text" id="usdtwallet" name="usdt_wallet" value="" placeholder="{$Think.lang.input_wallet_addr_tips}" class='form-control'>
					<div class="ellipsis wallet_key q-ml-md" style="display: none;"></div>
				</div>
			</div>
			<div class="form-row flex">
				<div class="title label-md">{$Think.lang.paypwd}:</div>
				<div class="input-box">
					<input type="password" name="paypwd" class="form-control password" placeholder="{$Think.lang.input_enter_paypwd_tips}" autocomplete="off">
				</div>
			</div>
			<div class="form-row">{$Think.lang.kind_tips}</div>
			<div class="form-row">
				<button type="button" class="input-btn btnform btn-disabled login-btn">
					<span class="btn-content">
						<span>{$Think.lang.label_withdraw}</span>
					</span>
				</button>
			</div>
		</form>
	</div>
	{include file="common/footer" /}
</body>
</html>